package models_main

import (
	"fmt"
	"longmen/server/pkg/db/mysql/models"
	"time"
)

// MgrChat 房管私聊记录表
type MgrChat struct {
	Id        int       //自增id
	CreatedAt time.Time //创建时间
	MgrId     int       //房管uid
	UserId    int       //私聊用户id
}

func (MgrChat) TableName() string {
	return fmt.Sprintf("%smgr_chat", models.Prefix)
}

// MgrChatDelete 房管私聊历史删除记录
type MgrChatDelete struct {
	Id          int   //自增id
	CreateStamp int64 //操作时间-毫秒
	UserId      int   //操作人id
	ChatUserId  int   //对话的用户id
}

func (MgrChatDelete) TableName() string {
	return fmt.Sprintf("%smgr_chat_delete", models.Prefix)
}
